package org.jeecg.modules.jxc.sale.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.modules.jxc.sale.entity.SaleListGoods;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: tb_sale_list
 * @Author: jeecg-boot
 * @Date:   2021-10-28
 * @Version: V1.0
 */
@Data
@ApiModel(value="tb_sale_listPage对象", description="tb_sale_list")
public class SaleListPage {

	/**销售单id，主键*/
	@ApiModelProperty(value = "销售单id，主键")
	private Integer id;
	/**销售单号*/
	@Excel(name = "销售单号", width = 15)
	@ApiModelProperty(value = "销售单号")
	private String saleNumber;
	/**实付金额*/
	@Excel(name = "实付金额", width = 15)
	@ApiModelProperty(value = "实付金额")
	private Double amountPaid;
	/**应付金额*/
	@Excel(name = "应付金额", width = 15)
	@ApiModelProperty(value = "应付金额")
	private Double amountPayable;
	/**销售单创建日期*/
	@Excel(name = "销售单创建日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "销售单创建日期")
	private Date saleDate;
	/**状态*/
	@Excel(name = "状态", width = 15)
	@ApiModelProperty(value = "状态")
	private Integer state;
	/**备注*/
	@Excel(name = "备注", width = 15)
	@ApiModelProperty(value = "备注")
	private String remarks;
	/**客户id，外键*/
	@Excel(name = "客户id，外键", width = 15)
	@ApiModelProperty(value = "客户id，外键")
	private Integer customerId;
	/**用户id，外键*/
	@Excel(name = "用户id，外键", width = 15)
	@ApiModelProperty(value = "用户id，外键")
	private Integer userId;

	@ExcelCollection(name="tb_sale_list_goods")
	@ApiModelProperty(value = "tb_sale_list_goods")
	private List<SaleListGoods> saleListGoodsList;

}
